package com.swt.gap.service.impl;

import com.swt.gap.dao.SysRoleMapper;
import com.swt.gap.model.entity.SysRole;
import com.swt.gap.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author tyh
 * @Date 2020/4/16 11:05
 */

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;


    @Override
    public List<SysRole> getUserRoleByUserName(String userName) {
        List<SysRole> sysRoleList =  sysRoleMapper.getRoleByUserName(userName);
        return sysRoleList;
    }
}
